import react from '@vitejs/plugin-react';
import { defineConfig } from 'vite';

export default defineConfig({
  plugins: [
    react(),
  ],
  server: {
    port: 5174,
    proxy: {
      '/auth': 'http://localhost:8090',
      '/students': 'http://localhost:8090',
      '/courses': 'http://localhost:8090',
      '/teachers': 'http://localhost:8090',
      '/admin': 'http://localhost:8090',
      '/enrollments': 'http://localhost:8090',
      '/course-reviews': 'http://localhost:8090',
      '/time-slots': 'http://localhost:8090'
    }
  },
});


